package com.itheima.health.service;

import com.itheima.health.exception.HealthException;
import com.itheima.health.pojo.Menu;

import java.util.List;

public interface MenuService {
    List<Menu> findAll();

    List<Integer> findMenuIdsByRoleId(int roleId);

    List<Menu> findAllMenuAsTree();

    void add(Menu menu);

    Menu findById(int id);

    void update(Menu menu);

    void deleteById(int id) throws HealthException;
}
